﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FJERP.BLL;

namespace FJERP
{
    public partial class PurchaseOutShow : System.Web.UI.Page
    {
        PurchaseBLL bll = new PurchaseBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }
        public void LoadData()
        {

            this.AspNetPager1.RecordCount = bll.count();//设置总行数;
            this.AspNetPager1.PageSize = 3;//设置每页显示的行数
            this.Repeater1.DataSource = bll.Purchase_Show(this.AspNetPager1.CurrentPageIndex, 3);//设置数据源
            this.Repeater1.DataBind();//绑定数据源
        }
        protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
        {
            LoadData();
        }
    }
}